paste
Type
command
Summary
Pastes the contents of the clipboard into the selection or insertion point.
Syntax
paste
Description
Use the paste command to place objects, an image, or text on the current card.
If there is an active field (one that contains the caret) and a text format is on the clipboard, text will be pasted into the field.
If there is an image selection (the image selection tool is active and a region of an image is selected) and image data is on the clipboard, then the image data will be pasted into the selection.
If the defaultStack is modifiable and there are objects on the clipboard, they will be pasted onto the current card of the defaultStack.
If the defaultStack is modifiable and there is image data on the clipboard, a new image object will be pasted onto the current card of the defaultStack.
Unless overidden by script, the standard paste keyboard shortcuts will have the same acion as the paste command except that the pointer tool must be selected for objects to be pasted.
The paste command is equivalent to choosing Edit → Paste from the menubar.
Examples
paste
if the clipboard is "text" then paste
Related
glossary: command, insertion point, current card, object
message: newAudioclip, newButton, newCard, newGroup, newPlayer, newGraphic, newField, newScrollbar, newEPS, newImage, newVideoclip
property: defaultStack
function: clipboard
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server